import logging
import pytest
import requests

from test_a import log_set

if __name__ == '__main__':
    log_set()
    pytest.main(['test_a.py','-s',"--alluredir=./data","--clean-alluredir"])
    # 生成报告命令       生成器
    import os
    os.system(r"allure generate ./data -o htmlreport --clean")
